import '@babel/polyfill';
import React from 'react';
import ReactDom from 'react-dom';
import App from './router';

import './style/style.less';

const render = Component => ReactDom.render(
  <Component />,
  document.getElementById('root'),
);

render(App);

if (module.hot) {
  console.log('module.hot.accept');
  // 实现热更新
  module.hot.accept();
}
